firmware_loader: Log direct loading failures as info for d-i
authorBen Hutchings <benh@debian.org>
Thu, 30 May 2024 12:14:32 +0000 (13:14 +0100)
committerBen Hutchings <benh@debian.org>
Sun, 4 Aug 2024 20:10:58 +0000 (22:10 +0200)
commit5fb523e8843fea7d049a86c7ea6e7dd9ab1d84fd
tree585bd2131ff8d11a1ec5467b805b4efe53066094
parent1e5dffd1dbf8776142290d3d7aac7d3537ba6603
firmware_loader: Log direct loading failures as info for d-i

Forwarded: not-needed

On an installed Debian system, firmware packages will normally be
installed automatically based on a mapping of device IDs to firmware.
Within the Debian installer this has not yet happened and we need a
way to detect missing firmware.

Although many/most drivers log firmware loading failures, they do so
using many different formats.  This adds a single log message to the
firmware loader, which the installer's hw-detect package will look
for.  The log level is set to "info" because some failures are
expected and we do not want to confuse users with bogus error messages
(like in bug #966218).

NOTE: The log message format must not be changed without coordinating
this with the check-missing-firmware.sh in hw-detect.

Gbp-Pq: Topic debian
Gbp-Pq: Name firmware_loader-log-direct-loading-failures-as-info-for-d-i.path
drivers/base/firmware_loader/main.c